#ifndef __SEQLIST_H__
#define __SEQLIST_H__

#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>

// 顺序表
struct seqlist
{
    int *data;    // data --> 堆
    int capacity; // 容量
    int last;     // 最后数据的位置
};

// 基本API
struct seqlist * init_list(int cap);
bool add_list(int newdata, struct seqlist *sl);
void show(struct seqlist *sl);
struct seqlist *destroy(struct seqlist *sl);
struct seqlist *destroy_init(struct seqlist *sl);
bool is_full(struct seqlist *sl);
bool is_empty(struct seqlist *sl);


#endif